<?php
require_once("../layout_config.php");
?>

/*! \brief Generate progress bar
 *  \param element The id of the where we are going to insert the progressbar. 
 *  \param percent The percent of the progressbar.
 */
function progressBar (element, percent) {
	$(element).progressBar(percent,{
		speed: 40,
		showText: true, 
		boxImage: 'themes/default/images/progressbar.gif',
		barImage: {
						0:  'themes/<?=$layout_theme?>/images/progressbg_red.gif',
						25: 'themes/<?=$layout_theme?>/images/progressbg_orange.gif',
						50: 'themes/<?=$layout_theme?>/images/progressbg_yellow.gif',
						75: 'themes/<?=$layout_theme?>/images/progressbg_green.gif'
					}
	});
}
